﻿using System.Collections.Generic;
using System.Runtime.Serialization;
using MyFloridaHouse.libSvDTO;

namespace MyFloridaHouse.libSTO
{
	/// <summary>
	/// Census Geometry STO (server transfer object)
	/// </summary>
    [DataContract]
    public class CensusGeometrySTO
    {
        byte[] _packedDataList;
        int _rowCount;
        string _errorMessage;

		/// <summary>
		/// Initializes a new instance of the <see cref="CensusGeometrySTO"/> class. 
		/// </summary>
        public CensusGeometrySTO()
        {
            _packedDataList = new byte[0];
            _rowCount = -1;
            _errorMessage = "";
        }

        /// <summary>
        /// Gets or sets the list of: <see cref="CensusGeometryDTO"/>.
        /// </summary>
        /// <value>The data list.</value>
        [DataMember]
        public byte[] packedDataList
        {
            get { return _packedDataList; }
            set { _packedDataList = value; }
        }

		/// <summary>
		/// Gets or sets the error message.
		/// </summary>
		/// <value>The error message.</value>
        [DataMember]
        public string errorMessage
        {
            get { return _errorMessage; }
            set { _errorMessage = value; }
        }

        [DataMember]
        public int rowCount
        {
            get { return _rowCount; }
            set { _rowCount = value; }
        }
    }

}
